﻿using MapleLeaf.DataBase.Entity;
using SqlSugar;

namespace MapleLeaf.Model.CookBook.Menu.Entity {
    /// <summary>
    /// 菜单
    /// </summary>
    [SugarTable("sys_menu", "菜单")]
    public class MenuEntity : DataEntityBase {

        /// <summary>
        /// 菜单名称
        /// </summary>
        [SugarColumn(ColumnDescription = "菜单名称")]
        public string Name { get; set; }



        /// <summary>
        /// 【目录】只有一个子路由是否始终显示
        /// </summary>
        [SugarColumn(ColumnName = "always_show", ColumnDescription = "目录】只有一个子路由是否始终显示")]
        public int? AlwaysShow { get; set; }

        /// <summary>
        /// 组件路径(vue页面完整路径，省略.vue后缀)
        /// </summary>
        [SugarColumn(ColumnDescription = "组件路径(vue页面完整路径，省略.vue后缀)")]
        public string? Component { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        [SugarColumn(ColumnDescription = "菜单图标")]
        public string? Icon { get; set; }

        /// <summary>
        /// 【菜单】是否开启页面缓存
        /// </summary>
        [SugarColumn(ColumnName = "keep_alive", ColumnDescription = "【菜单】是否开启页面缓存")]
        public int? KeepAlive { get; set; }

        /// <summary>
        /// 父菜单ID
        /// </summary>
        [SugarColumn(ColumnName = "parent_id", ColumnDescription = "父菜单ID")]
        public long? ParentId { get; set; }

        /// <summary>
        /// 权限标识
        /// </summary>
        [SugarColumn(ColumnDescription = "权限标识")]
        public string? Perm { get; set; }
        /// <summary>
        /// 路由参数
        /// </summary>
        [SugarColumn(ColumnName = "route_params", ColumnDescription = "路由参数")]
        public string? RouteParams { get; set; }
        /// <summary>
        /// 跳转路径
        /// </summary>
        [SugarColumn(ColumnDescription = "跳转路径")]
        public string? Redirect { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary>
        [SugarColumn(ColumnName = "route_name", ColumnDescription = "路由名称")]
        public string? RouteName { get; set; }

        /// <summary>
        /// 路由路径
        /// </summary>
        [SugarColumn(ColumnName = "route_path", ColumnDescription = "路由路径")]
        public string? RoutePath { get; set; }

        /// <summary>
        /// 排序(数字越小排名越靠前)
        /// </summary>
        [SugarColumn(ColumnDescription = "排序(数字越小排名越靠前)")]
        public int? Sort { get; set; }

        /// <summary>
        /// 菜单类型（1-菜单 2-目录 3-外链 4-按钮）
        /// </summary>
        [SugarColumn(ColumnDescription = "菜单类型（1-菜单 2-目录 3-外链 4-按钮）")]
        public int? Type { get; set; }

        /// <summary>
        /// 显示状态(1:显示;0:隐藏)
        /// </summary>
        [SugarColumn(ColumnDescription = "显示状态(1:显示;0:隐藏)")]
        public int? Visible { get; set; }
    }



}